/*
 * @Author: 番茄炒蛋蛋 wzh15802755802@163.com
 * @Date: 2024-04-25 11:48:33
 * @LastEditors: 番茄炒蛋蛋 wzh15802755802@163.com
 * @LastEditTime: 2024-05-24 15:35:56
 * @FilePath: \vue-element-admin-master-2\src\api\user.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

//登录
export function login(data) {
  return request({
    url: '/admapi.php/index/login/from/ajax',
    method: 'post',
    data
  })
}
//用户信息
export function getInfo(token) {
  return request({
    url: '/admapi.php/index/admininfo/from/ajax',
    method: 'post',
    // params: { token }
  })
}
//退出登录
export function logout() {
  return request({
    url: '/admapi.php/index/logout/from/ajax',
    method: 'post'
  })
}
//修改密码
export function pswupdate(data) {
  return request({
    url: '/admapi.php/index/pswupdate/from/ajax',
    method: 'post',
    data
  })
}
// export function getguanggao(data) {
//   return request({
//     url: '/admapi.php/index/list_banner/from/ajax',
//     method: 'post',
//     data
//   })
// }
//修改某个管理员密码	
export function setadminpass(data) {
  return request({
    url: '/admapi.php/index/setadminpass/from/ajax',
    method: 'post',
    data
  })
}
//七牛云配置	
export function qiniuconfig(data) {
  return request({
    url: '/admapi.php/index/qiniuconfig/from/ajax',
    method: 'get',
  })
}
//省市区
export function pca(data) {
  return request({
    url: '/admapi.php/index/pca/from/ajax',
    method: 'post',
    data
  })
}
//系统分类【列表】	
export function list_systypes(data) {
  return request({
    url: '/admapi.php/index/list_systypes/from/ajax',
    method: 'post',
    data
  })
}
//系统信息	
export function sysinfo(data) {
  return request({
    url: '/admapi.php/index/sysinfo/from/ajax',
    method: 'post',
    data
  })
}
//修改系统信息		
export function update_sys(data) {
  return request({
    url: '/admapi.php/index/update_sys/from/ajax',
    method: 'post',
    data
  })
}
//清除缓存			
export function cacheclear(data) {
  return request({
    url: '/admapi.php/index/cacheclear/from/ajax',
    method: 'post'
  })
}
//管理员分类【列表】			
export function list_admintype(data) {
  return request({
    url: '/admapi.php/index/list_admintype/from/ajax',
    method: 'post',
    data
  })
}
//管理员分类【详情】			
export function info_admintype(data) {
  return request({
    url: '/admapi.php/index/info_admintype/from/ajax',
    method: 'post',
    data
  })
}
//管理员分类【创建】			
export function create_admintype(data) {
  return request({
    url: '/admapi.php/index/create_admintype/from/ajax',
    method: 'post',
    data
  })
}
//管理员分类【更新】			
export function update_admintype(data) {
  return request({
    url: '/admapi.php/index/update_admintype/from/ajax',
    method: 'post',
    data
  })
}
//管理员分类【删除】			
export function delete_admintype(data) {
  return request({
    url: '/admapi.php/index/delete_admintype/from/ajax',
    method: 'post',
    data
  })
}
//部门【列表】				
export function list_bumen(data) {
  return request({
    url: '/admapi.php/index/list_bumen/from/ajax',
    method: 'post',
    data
  })
}
//管理员【列表】					
export function list_admin(data) {
  return request({
    url: '/admapi.php/index/list_admin/from/ajax',
    method: 'post',
    data
  })
}
//管理员【详情】
export function info_admin(data) {
  return request({
    url: '/admapi.php/index/info_admin/from/ajax',
    method: 'post',
    data
  })
}
//管理员【创建】
export function create_admin(data) {
  return request({
    url: '/admapi.php/index/create_admin/from/ajax',
    method: 'post',
    data
  })
}
//管理员【更新】
export function update_admin(data) {
  return request({
    url: '/admapi.php/index/update_admin/from/ajax',
    method: 'post',
    data
  })
}
//管理员【删除】
export function delete_admin(data) {
  return request({
    url: '/admapi.php/index/delete_admin/from/ajax',
    method: 'post',
    data
  })
}
//附件/预览图【列表】	
export function upfile_lists(data) {
  return request({
    url: '/admapi.php/index/upfile_lists/from/ajax',
    method: 'post',
    data
  })
}
//整体替换附件	
export function upfile_lists_all(data) {
  return request({
    url: '/admapi.php/index/upfile_lists_all/from/ajax',
    method: 'post',
    data
  })
}
//删除附件/预览图	
export function delfile_lists(data) {
  return request({
    url: '/admapi.php/index/delfile_lists/from/ajax',
    method: 'post',
    data
  })
}
//任务分类【列表】	
export function list_renwutype(data) {
  return request({
    url: '/admapi.php/index/list_renwutype/from/ajax',
    method: 'post',
    data
  })
}
//任务【列表】	
export function list_renwu(data) {
  return request({
    url: '/admapi.php/index/list_renwu/from/ajax',
    method: 'post',
    data
  })
}
//任务【详情】	
export function info_renwu(data) {
  return request({
    url: '/admapi.php/index/info_renwu/from/ajax',
    method: 'post',
    data
  })
}
//任务【创建】	
export function create_renwu(data) {
  return request({
    url: '/admapi.php/index/create_renwu/from/ajax',
    method: 'post',
    data
  })
}
//任务【更新】	
export function update_renwu(data) {
  return request({
    url: '/admapi.php/index/update_renwu/from/ajax',
    method: 'post',
    data
  })
}
//任务【删除】	
export function delete_renwu(data) {
  return request({
    url: '/admapi.php/index/delete_renwu/from/ajax',
    method: 'post',
    data
  })
}
//任务1主题【列表】	
export function list_renwu1zhuti(data) {
  return request({
    url: '/admapi.php/index/list_renwu1zhuti/from/ajax',
    method: 'post',
    data
  })
}
//任务1主题【详情】	
export function info_renwu1zhuti(data) {
  return request({
    url: '/admapi.php/index/info_renwu1zhuti/from/ajax',
    method: 'post',
    data
  })
}
//任务1主题【创建】	
export function create_renwu1zhuti(data) {
  return request({
    url: '/admapi.php/index/create_renwu1zhuti/from/ajax',
    method: 'post',
    data
  })
}
//任务1主题【更新】	
export function update_renwu1zhuti(data) {
  return request({
    url: '/admapi.php/index/update_renwu1zhuti/from/ajax',
    method: 'post',
    data
  })
}
//任务1主题【删除】	
export function delete_renwu1zhuti(data) {
  return request({
    url: '/admapi.php/index/delete_renwu1zhuti/from/ajax',
    method: 'post',
    data
  })
}
//任务参与人【列表】	
export function list_accountrenwu(data) {
  return request({
    url: '/admapi.php/index/list_accountrenwu/from/ajax',
    method: 'post',
    data
  })
}
//任务参与人【详情】	
export function info_accountrenwu(data) {
  return request({
    url: '/admapi.php/index/info_accountrenwu/from/ajax',
    method: 'post',
    data
  })
}
//任务参与人【创建】	
export function create_accountrenwu(data) {
  return request({
    url: '/admapi.php/index/create_accountrenwu/from/ajax',
    method: 'post',
    data
  })
}
//任务参与人【更新】	
export function update_accountrenwu(data) {
  return request({
    url: '/admapi.php/index/update_accountrenwu/from/ajax',
    method: 'post',
    data
  })
}
//任务参与人【删除】	
export function delete_accountrenwu(data) {
  return request({
    url: '/admapi.php/index/delete_accountrenwu/from/ajax',
    method: 'post',
    data
  })
}
//用户【列表】	
export function info_account(data) {
  return request({
    url: '/admapi.php/index/info_account/from/ajax',
    method: 'post',
    data
  })
}
//用户【创建】	
export function create_account(data) {
  return request({
    url: '/admapi.php/index/create_account/from/ajax',
    method: 'post',
    data
  })
}
//用户【更新】	
export function update_account(data) {
  return request({
    url: '/admapi.php/index/update_account/from/ajax',
    method: 'post',
    data
  })
}
//用户【删除】	
export function delete_account(data) {
  return request({
    url: '/admapi.php/index/delete_account/from/ajax',
    method: 'post',
    data
  })
}
